<%@page import="com.Service.BO.OrganizationBO"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>Service Directory</title>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <style media="all" type="text/css">
            @import "css/all.css";#main #middle #center-column form .table .listing tr .first.style1 a {
                color: #00F;
            }
            .TableHeading {
                font-weight: bold;
                font-variant: normal;
            }
        </style>
    </head>
    <body>
        <div id="main">

            <div id="header">
                <a href="index.html" class="logo"><img src="img/logo.png" width="954" height="112" alt="" /></a>


            </div>
            <div id="middle">
                <div id="left-column">
                    <h3>Home</h3>
                    <ul class="nav">
                        <li><a href="ListOrganController">Organization</a></li>
                        <li></li>
                        <li><a href="Services.jsp">Services</a></li>
                        <li><a href="Premises.jsp">Premises</a></li>
                        <li><a href="#">Forum</a>			    </li>
                        <li class="last"><a href="#">Fsoft Mail</a></li>
                    </ul>
                    <h3>Geograpphy</h3>
                    <ul class="nav">
                        <li><a href="TRegion.jsp">Trust region</a></li>

                        <li><a href="GovRegion.jsp">Government Region</a></li>
                    </ul>
                    <a href="#" class="link">Help</a>
                    <a href="index.jsp" class="link">Logout</a>
                </div>
                <div></div>
                <div id="center-column"><br />
                    <form action="" method="get">
                        <div class="table">
                            <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                            <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                            <div class="table"> <img src="file:///Macintosh HD/Users/michaelomar/Downloads/free-admin-template/admin-template/img/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="file:///Macintosh HD/Users/michaelomar/Downloads/free-admin-template/admin-template/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                                <table class="listing" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <th colspan="6" class="first">SEARCH POSTCODE</th>
                                    </tr>
                                    <tr>
                                        <td colspan="6" class="first style1">Postcode 
                                            <label for="postcode"></label>
                                            <input name="postcode" type="text" id="postcode" size="15" />
                                            Street 
                                            <label for="street"></label>
                                            <input name="street" type="text" id="street" size="15" />
                                            Town 
                                            <label for="town"></label>
                                            <input name="town" type="text" id="town" size="15" /></td>
                                    </tr>
                                    <tr class="bg">
                                        <td colspan="6" class="first style2"><input type="submit" name="search" id="search" value="search Address" />
                                            <input type="submit" name="none" id="none" value="None" />
                                            <input type="reset" name="clear" id="clear" value="Clear" /></td>
                                    </tr>
                                    </form>
                               <form id="for" name="for" action="getLookUp" method="get">
                                    <tr>
                                        <td width="53" class="first style3"><label for="postcode1"></label></td>
                                        <td width="136" class="TableHeading">Address</td>
                                        <td width="129" class="TableHeading">Post Code</td>
                                        <td width="102" class="TableHeading">Town</td>
                                        <td width="71" class="TableHeading">County</td>
                                        <td width="120" class="TableHeading">Country</td>
                                    </tr>
                                    <%
                                        List kit = (List) request.getAttribute("ListLook");
                                        Iterator lit = kit.iterator();
                                        while (lit.hasNext()) {
                                            OrganizationBO org = (OrganizationBO) lit.next();
                                            String add = org.getAddline1();
                                            String post = org.getPostcode();
                                            String city = org.getCity();
                                            String county = org.getCounty();
                                            String con = org.getAddline2();
                                    %>
                                    <tr>
                                        <td class="first style2"><span class="first style3">
                                                <input type="radio" name="radio" id="radio" value="<%= post%>" ></input>
                                            
                                        <td class="first style2"><%= add%></td>
                                        <td id="code"><%= post%></td>
                                        <td><%= city%></td>
                                        <td><%= county%></td>
                                        <td><%= con%></td>
                                        </span></td>
                                    </tr>
                                    <%
                                        }
                                    %>

                                </table>
                                    
                                <input type="submit" name="select" id="select" value="Select" />
                                </form>
                                    <form id="back" name="back" method="get" action="SpecialismController">
                                <input type="submit" name="close" id="close" value="Close" />
                                    </form>
                                <div class="select"> <strong>Other Pages: </strong>
                                    <select name="select">
                                        <option>1</option>
                                    </select>
                                </div>
                            </div>
                    
                    <p>&nbsp;</p>
                </div>
            </div>
            <div id="right-column">
                <strong class="h">INFO</strong>
                <div class="box">This screen is to add a contact details for an organization </div>
            </div>
        </div>
        <div id="footer">
            <p>&nbsp;</p>
            <p>&nbsp;</p>
        </div>
    </body>
</html>
